package com.black.app.domain.req.my.myorders;

import cn.hutool.core.util.StrUtil;
import com.black.common.core.domain.page.PageAbstructReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@ApiModel(value = "SysOrderAfterSaleQueryReq", description = "订单售后查询请求对象")
public class SysOrderAfterSaleQueryReq extends PageAbstructReq {
    /**
     * 售后id
     */
    @ApiModelProperty(value = "售后id")
    private Integer id;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    /**
     * 订单编号
     */
    @ApiModelProperty(value = "订单编号")
    private String orderCode;

    /**
     * 排序
     * @return
     */
    @ApiModelProperty(hidden = true)
    @Override
    public String getOrderBy() {
        if(StrUtil.isNotBlank(super.getOrderByColumn())){
            return super.getOrderByColumn()+" "+super.getIsAsc();
        }
        return null;
    }
}
